import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Home from '@/page/home/Home'//首页
import Shop from '@/page/shop/Shop'//商成
import Index from '@/page/home/components/Index'//首页
import Orders from '@/page/orders/Orders'//订单
import Mine from '@/page/mine/Mine'//个人中心
import CleanType from '@/page/cleaningtype/CleanType'//商品列表
import Reservation from '@/page/reservation/Reservation'//预约
import Adresses from '@/page/adress/Adresses'//地址
import Recharge from '@/page/recharge/Recharge'//充值页
import RechargeRecord from '@/page/rechargerecord/RechargeRecord'//充值记录
import HightEnd from '@/page/hightend/HightEnd'//高段护理
import HightEndDetails from '@/page/hightenddetails/HightEndDetails'//高端护理详情
import SinglePage from '@/page/singlepage/SinglePage'//单页
import Price from '@/page/price/Price'//价格
import JoinUs from '@/page/joinus/JoinUs'//加入我们详情
import GoodInfo from '@/page/goodinfo/GoodInfo'//订单详情页
import ServiceProce from '@/page/serviceproce/ServiceProce'//服务进程
// import PayNow from '@/page/paynow/PayNow'//
import Balance from '@/page/balance/Balance'//余额记录
import Ryicon from '@/page/ryicon/Ryicon'//瑞亚币记录
import Integral from '@/page/integral/Integral'//积分记录
import PcOrders from '@/page/pcorders/PcOrders'//个人中心进入的订单列表
import PcShop from '@/page/pcshop/PcShop'//个人中心进入的商城
import Donate from '@/page/donate/Donate'//公益捐赠
import Recommend from '@/page/recommend/Recommend'//我的推荐
import Team from '@/page/team/Team'//我的团队
import MyInfo from '@/page/myinfo/MyInfo'//个人资料
import UpNickName from '@/page/upnickname/UpNickName'//修改昵称
import UpTel from '@/page/uptel/UpTel'//修改手机号前验证手机号页面
import UpPassword from '@/page/uppassword/UpPassword'//修改密码
import More from '@/page/more/More'//更多页面
import Login from '@/page/login/Login'////登录页面
import FindPassword from '@/page/findpassword/FindPassword'//找回密码页面
import Register from '@/page/register/Register'//注册页
import AboutUs from '@/page/aboutus/aboutus'//关于我们页面
import Addadress from '@/page/addadress/Addadress'//添加地址
import Map from '@/page/map/Map'//地图
import ReUpdateTel from '@/page/reupdatetel/ReUpdateTel'//修改手机号
import Feedback from '@/page/feedback/Feedback'//意见反馈
import PayType from '@/page/paytype/PayType'//支付也买那
import UpdateAdress from '@/page/updateadress/UpdateAdress'//修改地址
import Uncomment from '@/page/uncomment/Uncomment'//待评价详情页
import Evelate from '@/page/evelate/Evelate'//评价页
import City from '@/page/city/City'//城市页
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
      redirect: '/index',
      children:[{
        path: '/index',
        name: 'Index',
        component: Index,
        meta:{
          title:'首页',
        }

      },{
        path: '/shop',
        name: 'Shop',
        component: Shop,
        meta:{
          title:'商城',
          login: true
        }
      },{
        path: '/orders',
        name: 'Orders',
        component: Orders,
        meta:{
          title:'订单',
          login: true
        }
   
      },{
        path: 'mine',
        name: 'Mine',
        component: Mine,
        meta:{
          title:'我的',
          login: true
        }
      }]
    },
    {
      path: '/cleantype',
      name: 'CleanType',
      component: CleanType,
    },
    {
      path: '/reservation',
      name: 'Reservation',
      component: Reservation,
      meta:{
          title:'预约取件',
          login: true
        }
    },    
    {
      path: '/adresses',
      name: 'Adresses',
      component: Adresses,
      meta:{
          title:'常用地址',
          login: true
        }
    },
    {
      path: '/recharge',
      name: 'Recharge',
      component: Recharge,
      meta:{
          title:'用户充值',
          login: true
        }
    },
    {
      path: '/rechargerecord',
      name: 'RechargeRecord',
      component: RechargeRecord,
      meta:{
          title:'充值记录',
          login: true
        }
    },
    {
      path: '/hightend',
      name: 'HightEnd',
      component: HightEnd,
      meta:{
          title:'高端洗护',
          login: true
        }
    
    },
    {
      path: '/hightenddetails/:id',
      name: 'HightEndDetails',
      component: HightEndDetails,
      meta:{
          title:'高端洗护',
        }
    
    },
    {
      path: '/singlepage/:type',
      name: 'SinglePage',
      component: SinglePage,
    },
    {
      path: '/aboutus/:id',
      name: 'AboutUs',
      component: AboutUs,
    },
    {
      path: '/price',
      name: 'Price',
      component: Price,
    },
    {
      path: '/joinus/:id',
      name: 'JoinUs',
      component: JoinUs,
      meta:{
        title:'加盟动态'
      }
    },
    {
      path: '/goodinfo/:id',
      name: 'GoodInfo',
      component: GoodInfo,
      meta:{
        title:'订单详情',
        login: true
      }
    },
     {
      path: '/serviceproce/:id',
      name: 'ServiceProce',
      component: ServiceProce,
      meta:{
        title:'服务流程',
        login: true
      }
    },
    //  {
    //   path: '/paynow',
    //   name: 'PayNow',
    //   component: PayNow,
    //   meta:{
    //     title:'付款',
    //     login: true
    //   }
    // },
    {
      path: '/balance',
      name: 'Balance',
      component: Balance,
      meta:{
        title:'余额记录',
        login: true
      }
    },
    {
      path: '/ryicon',
      name: 'Ryicon',
      component: Ryicon,
      meta:{
        title:'瑞雅币记录',
        login: true
      }
    },
    {
      path: '/integral',
      name: 'Integral',
      component: Integral,
      meta:{
        title:'积分记录',
        login: true
      }
    },
    {
      path: '/pcorders/:type',
      name: 'PcOrders',
      component: PcOrders,
      meta:{
        title:'全部订单',
        login: true
      }
    },
    {
      path: '/pcshop',
      name: 'PcShop',
      component: PcShop,
      meta:{
        title:'商城',
        login: true
      }
    },
    {
      path: '/donate',
      name: 'Donate',
      component: Donate,
      meta:{
        title:'公益',
        login: true
      }
    },
    {
      path:'/recommend',
      name:'Recommend',
      component:Recommend,
      meta:{
        title:'我的推广',
        login: true
      }
    },
    {
      path:'/team',
      name:'Team',
      component:Team,
      meta:{
        title:'我的团队',
        login: true
      }
    },
    {
      path:'/myinfo',
      name:'MyInfo',
      component:MyInfo,
      meta:{
        title:'个人资料',
        login: true
      }
    },
    {
      path:'/upnickname',
      name:'UpNickName',
      component:UpNickName,
      meta:{
        title:'修改昵称',
        login: true
      }
    },
    {
      path:'/uptel',
      name:'UpTel',
      component:UpTel,
      meta:{
        title:'手机号验证',
        login: true
      }
    },
    {
      path:'/uppassword',
      name:'UpPassword',
      component:UpPassword,
      meta:{
        title:'修改密码',
        login: true
      }
    },
     {
      path:'/more',
      name:'More',
      component:More,
      meta:{
        title:'更多',
        login: true
      }
    },
    {
      path:'/login',
      name:'Login',
      component:Login,
      meta:{
        title:'登陆',
      }
    },
     {
      path:'/findpassword',
      name:'FindPassword',
      component:FindPassword,
      meta:{
        title:'找回密码',
      }
    },
    {
      path:'/register',
      name:'Register',
      component:Register,
      meta:{
        title:'注册'
      }
    },
    {
      path:'/addadress',
      name:'Addadress',
      component:Addadress,
      meta:{
        title:'添加收货地址'
      }
    },
    {
      path:'/map',
      name:'Map',
      component:Map,
      meta:{
        title:'选择地址'
      }
    },
    {
      path:'/reupdatetel',
      name:'ReUpdateTel',
      component:ReUpdateTel,
      meta:{
        title:'修改手机号'
      }
    },
    {
      path:'/feedback',
      name:'Feedback',
      component:Feedback,
      meta:{
        title:'意见反馈'
      }
    },
    {
      path:'/paytype/:id',
      name:'PayType',
      component:PayType,
      meta:{
        title:'支付'
      }
    },
    {
      path:'/updateadress',
      name:'UpdateAdress',
      component:UpdateAdress,
      meta:{
        title:'修改地址'
      }
    },
    {
      path:'/uncomment/:id',
      name:'Uncomment',
      component:Uncomment,
      meta:{
        title:'订单详情'
      }
    },
    {
      path:'/evelate/:id',
      name:'Evelate',
      component:Evelate,
      meta:{
        title:'评价'
      }
    },
    {
      path:'/city',
      name:'City',
      component:City,
      meta:{
        title:'选择城市'
      }
    }
 
  ]
})
